package com.yanmaohu.yulia.bean;

public final class IntervalTermAsteriskFactor implements IntervalTerm {

    private int beginIndex;
    private int endIndex;
    private IntervalTerm intervalTerm;
    private Factor factor;

    public IntervalTermAsteriskFactor(IntervalTerm intervalTerm, Factor factor) {
        this.beginIndex = intervalTerm.getBeginIndex();
        this.endIndex = factor.getEndIndex();
        this.intervalTerm = intervalTerm;
        this.factor = factor;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public IntervalTerm getIntervalTerm() {
        return intervalTerm;
    }

    public Factor getFactor() {
        return factor;
    }

}
